<style>
.rich-text img{
    max-width: 100%;
}
</style>
<div class="rich-text">{$attr.html}</div>